/*  1:   */ package org.intellij.plugins.relaxNG.references;
/*  2:   */ 
/*  3:   */

import com.intellij.patterns.PatternCondition;
import com.intellij.psi.xml.XmlAttributeValue;
import com.intellij.util.ProcessingContext;
import org.jetbrains.annotations.NotNull;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */ 
/*  8:   */ class AttributeValueCondition
/*  9:   */   extends PatternCondition<XmlAttributeValue>
/* 10:   */ {
/* 11:   */   private final String a;
/* 12:   */   
/* 13:   */   public AttributeValueCondition(String paramString)
/* 14:   */   {
/* 15:28 */     super("AttributeValue");
/* 16:29 */     this.a = paramString;
/* 17:   */   }
/* 18:   */   
/* 19:   */   public boolean accepts(@NotNull XmlAttributeValue paramXmlAttributeValue, ProcessingContext paramProcessingContext)
/* 20:   */   {
/* 21:33 */     if (paramXmlAttributeValue == null) {
/* 22:33 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/intellij/plugins/relaxNG/references/AttributeValueCondition", "accepts" }));
/* 23:   */     }
/* 24:33 */     return this.a.equals(paramXmlAttributeValue.getValue());
/* 25:   */   }
/* 26:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.plugins.relaxNG.references.AttributeValueCondition

 * JD-Core Version:    0.7.0.1

 */